CC = gcc
CFLAGS = -Wall

io: io.c gate.o list.o queue.o stack.o
	$(CC) $(CFLAGS) io.c gate.o list.o queue.o stack.o -o io -g

gate.o: gate.c
	$(CC) $(CFLAGS) -c gate.c

list.o: list.c
	$(CC) $(CFLAGS) -c list.c

queue.o: queue.c
	$(CC) $(CFLAGS) -c queue.c
	
stack.o: stack.c
	$(CC) $(CFLAGS) -c stack.c

.PHONY: clean
clean:
	rm -f io gate.o list.o queue.o
